|
|
@@ -23,7 +23,12 @@ public class UploadService extends Service implements UploadTask.OnPhotoUploadLi
|
23
|
23
|
|
24
|
24
|
@Override
|
25
|
25
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
26
|
|
- startUpload();
|
|
26
|
+ if(intent!=null && intent.getSerializableExtra("photo")!=null){
|
|
27
|
+ PhotoBean bean = (PhotoBean) intent.getSerializableExtra("photo");
|
|
28
|
+ bean.uploadStatus = PhotoBean.UploadStatus.STATUS_NO_BEGIN;
|
|
29
|
+ DBService.getInstance().updatePhotoBean(bean);
|
|
30
|
+ }
|
|
31
|
+ startUpload();
|
27
|
32
|
return super.onStartCommand(intent, flags, startId);
|
28
|
33
|
}
|
29
|
34
|
|